import importAll from '@/utils/importAll'
const asyncRoutesModules=importAll(require.context('./modules', false, /\.js$/),'.js') 

//动态路由
 const asyncRoutes=[]
 for (const item in asyncRoutesModules) {
  asyncRoutes.push(asyncRoutesModules[item])
}
export  default asyncRoutes